function main() {
    //程序入口
    require(["pluginAttach", "knockout"], function (pluginAttach, ko) {
        var vm = {
            firstName: ko.observable("王"),
            lastName: ko.observable("富贵"),
        };
        vm.fullName = ko.pureComputed(function () {
            var firstName = this.firstName();
            // var lastName = this.lastName();
            var lastName = this.lastName.peek();
            return firstName + lastName;
        }, vm);

        ko.applyBindings(vm, document.getElementById("root"));
    });
}
require(["../scripts/require.config"], main);
